// 支付方式
export interface PaymentMethod {
    id: string;
    name: string;
    icon: string;
    description?: string;
}

// 支付状态
export enum PaymentStatus {
    UNPAID = 'UNPAID',    // 未支付
    PAID = 'PAID',        // 已支付
    CLOSED = 'CLOSED',    // 已关闭
    REFUNDED = 'REFUNDED', // 已退款
    UNKNOWN = 'UNKNOWN',  // 未知状态
    ERROR = 'ERROR'       // 查询失败
}

// 支付记录
export interface PaymentRecord {
    id: number;
    orderNo: string;
    amount: number;
    paymentMethod: string;
    status: PaymentStatus;
    createTime: string;
    payTime?: string;
    closeTime?: string;
    refundTime?: string;
    subject: string;
    description?: string;
}

// 支付参数
export interface PaymentParams {
    orderNo: string;
    amount: string;
    subject: string;
    paymentMethod: string;
}

// 支付结果
export interface PaymentResult {
    success: boolean;
    message: string;
    data?: any;
} 